﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SAServices.BLL
{
    class VendorBLL
    {
        internal static bool AddVendor(Model.ConnectionConext connCtx, Model.VendorInfo newVendorInfo)
        {
            return DAL.VendorDAL.AddVendor(connCtx, newVendorInfo);
        }

        internal static bool UpdateVendor(Model.ConnectionConext connCtx, Model.VendorInfo updateVendorInfo)
        {
            return DAL.VendorDAL.UpdateVendor(connCtx, updateVendorInfo);
        }

        internal static bool DeleteVendor(Model.ConnectionConext connCtx, string vendorName)
        {
            return DAL.VendorDAL.DeleteVendor(connCtx, vendorName);
        }

        internal static Model.VendorInfo GetVendor(Model.ConnectionConext connCtx, string vendorName)
        {
            return DAL.VendorDAL.GetVendor(connCtx, vendorName);
        }

        internal static List<Model.VendorInfo> GetAllVendors(Model.ConnectionConext connCtx)
        {
            return DAL.VendorDAL.GetAllVendors(connCtx);
        }

        internal static Model.VendorInfo GetVendor(Model.ConnectionConext connCtx, int vendorId)
        {
            return DAL.VendorDAL.GetVendor(connCtx, vendorId);
        }
    }
}
